package com.smartleanx.module.hrm.dal.dataobject.salarynotice;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.smartleanx.framework.mybatis.core.type.EncryptTypeHandler;
import com.smartleanx.framework.tenant.core.db.TenantBaseDO;
import lombok.*;

/**
 * 员工工资条通知 DO
 *
 * @author zhangchp
 */
@TableName(value = "hrm_salary_notice", autoResultMap = true)
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SalaryNoticeDO extends TenantBaseDO {

    /**
     * 主键ID
     */
    @TableId
    private Long id;
    /**
     * 标题
     */
    private String title;
    /**
     * 员工ID
     */
    private Long employeeId;
    /**
     * 薪资月份详情ID
     */
    private Long payrollDetailId;
    /**
     * 应出勤
     */
    private Double attendance;
    /**
     * 实际出勤
     */
    private Double actualAttendance;
    /**
     * 实发薪资
     */
    @TableField(typeHandler = EncryptTypeHandler.class)
    private String effectiveSalary;
    /**
     * 确认状态
     */
    private Boolean confirmStatus;
    /**
     * 员工反馈
     */
    private String feedback;
}